﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo03
{
    class Person
    {
        private int Id;
        private string name;
        private char sex;
        private int cardid;
        private int tel;

        public int ID { get; set; }
        public string Name { get; set; }
        public char Sex { get; set; }
        public int  CardId { get; set; }
        public int Tel { get; set; }

        public Person(int Id,string name,char sex,int cardid,int tel)
        {
            this.Id = Id;
            this.name = name;
            this.sex = sex;
            this.cardid = cardid;
            this.tel = tel;
        }
        public void pritln()
        {
            Console.WriteLine("我的名字叫做{0}，我的编号是{1}，我的性别是{2}，我的身份证号是{3}，我的电话号码是{4}"
                ,this.Id,this.name,this,sex,this.cardid,this.tel);
        }
    }
}
